package org.wen.soft.asm.model;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class LoadAnnotation {

    String descriptor;
    boolean visible;

    Map<String, Object> keyValues = new HashMap<>();

    public LoadAnnotation(String descriptor, boolean visible) {
        this.descriptor = descriptor;
        this.visible = visible;
    }

    public void addKeyValue(String key, Object value) {
        keyValues.put(key, value);
    }
}
